﻿using Stimulus360.Models.Data;
using System.Collections.Generic;
using Stimulus360.Models.Data.CustomTypes;

namespace Stimulus360.Repositories
{
    /// <summary>
    ///     This class is responsible for CRUD operations related to the Investment Category entity.
    /// </summary>
    public partial class DataRepository 
    {
        #region IInvestmentCategoryRepository Members

        /// <summary>
        ///     Method to return a summary of all the Investment Categories
        /// </summary>
        /// <returns>
        ///     Summary of all the Investment Categories
        /// </returns>
        public ICollection<InvestmentCategorySummary> GetAllInvestmentCategorySummaries()
        {
            return _dataContext.InvestmentCategories.InvestmentCategorySummary();
        }
        #endregion
    }
}
